package com.study_online.controller;/*
    张昊（java文件）
 
*/

import com.study_online.domain.ResultInfo;
import com.study_online.domain.Video;
import com.study_online.service.VideoTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/videoType")
public class VideoTypeConntroller {

    @Autowired
    private VideoTypeService videoTypeService;

    //查询所有分类下的所有视频
    @RequestMapping("/findAll")
    public ResultInfo findAll(Integer ID){
        ResultInfo all = videoTypeService.findId(ID);
        return all;
    }
}
